<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../jsjar/jquery-3.5.1.min.js"></script>
<script type="text/javascript">
$(function(){
	$(".ah a").click(function(){
		var id=$(this).attr("myid");
		$("#myaaa").load("${pageContext.request.contextPath }/shop/deleteid?id="+id);
		return false;
	});
});
</script>
<style type="text/css">
*{margin:0px; padding:0px;}
td{width:100px; height:40px;}
a:hover{text-decoration: none;}
</style>
</head>
<body>
<div id="myaaa">
<c:forEach var="s" items="${shop }">
	<table>
		<tr>
			<td>${s.fuser.fname }</td>
			<td>${s.fuser.fusername }</td>
			<td>${s.wares.wname }</td>
			<td>¥&nbsp${s.wares.wprice }元</td>
			<td>${s.snumber }份</td>
			<td class="ah"><a myid="${s.sid }" href="#">购买</a></td>
		</tr>
	</table>
</c:forEach>
</div>
</body>
</html>